﻿#include "topo_vertex.h"

CAGD::TopoVertex::TopoVertex(BPnt p) : m_point(new GeomPoint(p))
{
}

CAGD::TopoVertex::TopoVertex(Handle(GeomPoint) p) : m_point(p)
{
}

Handle(CAGD::GeomPoint) CAGD::TopoVertex::Geom() const
{
    return m_point;
}

std::unordered_set<CAGD::TopoEdge *> &CAGD::TopoVertex::Edges()
{
    return m_edges;
}

CAGD::TopoType CAGD::TopoVertex::Type() const
{
    return TopoType::VERTEX;
}